<template>
  <!-- 筛选条件 -->
  <div>
    <el-input v-model="searchForm.taskId" style="width:150px"></el-input>
    <el-button icon="el-icon-delete" size="small" style="margin-left:10px" @click="clearform">清空</el-button>
    <el-button
      type="primary"
      icon="el-icon-plus"
      size="small"
      style="margin-bottom:2%"
      @click="addTaskClick"
    >新增</el-button>
  </div>
</template>

<script>
export default {
  name: "Index",

  data() {
    return {
      searchForm: {}
    };
  },
  created() {},
  destroyed() {},
  mounted() {},
  methods: {
    // 新增按钮
    addTaskClick() {
      this.$emit("addTaskClick", this.searchForm);
    },
    clearform(){
        this.searchForm()
    }
  }
};
</script>
<style scoped>
</style>
